package org.ehe.finance.voucher.mapper;

import org.apache.ibatis.annotations.Param;
import org.ehe.common.mybatis.core.mapper.BaseMapperPlus;
import org.ehe.finance.voucher.domain.ErpFinanceVoucherType;
import org.ehe.finance.voucher.domain.vo.ErpFinanceVoucherTypeVo;

/**
 * @author :zhangnn
 * @className :ErpFinanceVoucherTypeMapper
 * @description: TODO
 * @date 2025-08-22 17:42:30
 */
public interface ErpFinanceVoucherTypeMapper extends BaseMapperPlus<ErpFinanceVoucherType, ErpFinanceVoucherTypeVo> {
    Integer findMaxSerialByTypeAndPeriod(@Param("voucherTypeId") Long voucherTypeId,@Param("period") String period);

    /**
     * 子凭证
     * @param mainVoucherNo
     * @return
     */
    Integer findMaxSubSerialByMainVoucherNo(@Param("mainVoucherNo") String mainVoucherNo);
}
